package com.jms.web.controller.jms.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.jms.common.annotation.Excel;
import com.jms.common.core.domain.BaseEntity;

/**
 * 工单配置对象 worksheet
 * 
 * @author drx
 * @date 2024-09-25
 */
public class Worksheet extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /**  */
    private Long id;

    /** 工时类型 --> 字典 */
    @Excel(name = "工单类型", dictType = "manhour")
    private String manhourType;

    /** 默认预警时限 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "默认预警时限", width = 30, dateFormat = "yyyy-MM-dd")
    private Date earlyWarning;

    /** 默认办结时限 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "默认办结时限", width = 30, dateFormat = "yyyy-MM-dd")
    private Date completed;

    /** 备注 */
    @Excel(name = "备注")
    private String remarks;

    /** 删除标志（0代表存在 1代表删除） */
    private String delFlag;

    /** 创建人姓名 */
    @Excel(name = "创建人姓名")
    private String createName;

    /** 修改人姓名 */
    @Excel(name = "修改人姓名")
    private String updateName;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setManhourType(String manhourType) 
    {
        this.manhourType = manhourType;
    }

    public String getManhourType() 
    {
        return manhourType;
    }
    public void setEarlyWarning(Date earlyWarning) 
    {
        this.earlyWarning = earlyWarning;
    }

    public Date getEarlyWarning() 
    {
        return earlyWarning;
    }
    public void setCompleted(Date completed) 
    {
        this.completed = completed;
    }

    public Date getCompleted() 
    {
        return completed;
    }
    public void setRemarks(String remarks) 
    {
        this.remarks = remarks;
    }

    public String getRemarks() 
    {
        return remarks;
    }
    public void setDelFlag(String delFlag) 
    {
        this.delFlag = delFlag;
    }

    public String getDelFlag() 
    {
        return delFlag;
    }
    public void setCreateName(String createName) 
    {
        this.createName = createName;
    }

    public String getCreateName() 
    {
        return createName;
    }
    public void setUpdateName(String updateName) 
    {
        this.updateName = updateName;
    }

    public String getUpdateName() 
    {
        return updateName;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("manhourType", getManhourType())
            .append("earlyWarning", getEarlyWarning())
            .append("completed", getCompleted())
            .append("remarks", getRemarks())
            .append("delFlag", getDelFlag())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("createName", getCreateName())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("updateName", getUpdateName())
            .toString();
    }
}
